//
//  AcountModel.h
//  SinaWeibo
//
//  Created by Apple on 16/8/13.
//  Copyright © 2016年 Apple. All rights reserved.
//

#import <Foundation/Foundation.h>


@interface AcountModel : NSObject<NSCoding>

/**
 *  访问令牌
 */
@property (nonatomic, copy) NSString *access_token;
/**
 *  多少秒之后过期时间
 */
@property (nonatomic, strong) NSNumber *expires_in;
/**
 *  多少秒之后提醒过期
 */
@property (nonatomic, strong) NSNumber *remind_in;
/**
 *  用户ID
 */
@property (nonatomic, strong) NSNumber *uid;
/**
 *  真正的过期
 */
@property (nonatomic, strong) NSDate *expires_time;
/**
 *  用户头像地址。
 */
@property (nonatomic, copy) NSString *profile_image_url;






-(instancetype)initWithDict:(NSDictionary *)dict;

+(instancetype)acountModelWithDict:(NSDictionary *)dict;

+(instancetype)acountModelFromSandbox;

-(BOOL)saveModel;

@end
